package com.greensam.pixelengine.repository;

import com.greensam.pixelengine.pojo.entity.PermissionPo;
import com.greensam.pixelengine.pojo.entity.RolePermissionPo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Macro_Ray
 * @since 2025/6/19 15:10
 */
@Repository
public interface RolePermissionRepository extends JpaRepository<RolePermissionPo, Long>, QuerydslPredicateExecutor<RolePermissionPo> {

    List<RolePermissionPo> findAllByRoleIdAndDelete(Long roleId, Boolean delete);
}
